//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
/////
///// THIS DO FILE CONSTRUCTS THE DATA AND RESULTS FROM:
///// "New Evidence on Welfare’s Disincentive for the Youth using Administrative Panel Data"
///// Olivier Bargain and Anders B. Jonassen
///// (further explanations etc. can be found in the README file)
/////
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////

* The results are computed in 2 steps
		* STEP 1: Construction of estimation samples 
		* STEP 2: Estimation and constructing figures and tables
		

/// Defining globals
	* Folder with DST register data
	global rawdata = "E:\Data\rawdata\706424"
	* Folder for data constructed
	global workdata = "Y:\Data\workdata\706424\abj\restat_package\data"
	* Folder for do files constructing data for paper
	global data_do = "Y:\Data\workdata\706424\abj\restat_package\data\data_do"
	* Folder for do files with results
	global results_do = "Y:\Data\workdata\706424\abj\restat_package\data\results_do"
	* Folder for figures
	global figures = "Y:\Data\workdata\706424\abj\restat_package\figures"
	* Folder for tables
	global tables = "Y:\Data\workdata\706424\abj\restat_package\tables"
	* Folder for temporary data sets
	global temp = "Y:\Data\workdata\706424\abj\restat_package\data\temp"
	

///////////// STEP 1 //////////////////////

/// Construction of main samples

	 do $data_do/bef_red.do      /*Constructing auxiliary data set with population characteristics*/
	 do $data_do/mia_con.do      /*Constructing auxiliary data set with monthly employment*/

	 do $data_do/baseline.do     /*Constructing estimation data set for the baseline selection*/
	 do $data_do/cohort.do       /*Constructing estimation data set for the cohort-tracking selection*/
	 do $data_do/parents.do      /*Constructing estimation data set for parents*/
	 do $data_do/crime.do        /*Constructing estimation data set for crime outcome*/
	 do $data_do/edulevels.do    /*Constructing estimation data set for different levels of education*/            /*Appendix*/
	 do $data_do/hoursofwork.do  /*Constructing estimation data set for heterogeneity analysis of hours of work*/  /*Appendix*/

///////////// STEP 2 //////////////////////


/// Figures
	do $results_do/figure1.do
	do $results_do/figure2.do
	do $results_do/figure3.do
	do $results_do/figure4.do
	do $results_do/figure5.do
	do $results_do/figureA2.do    /*Online Appendix*/
	do $results_do/figureB1.do    /*Online Appendix*/
	do $results_do/figureB2.do    /*Online Appendix*/
	do $results_do/figureB3.do    /*Online Appendix*/
	do $results_do/figureB4.do    /*Online Appendix*/
	do $results_do/figureC1_C2.do /*Online Appendix*/
	do $results_do/figureC3.do    /*Online Appendix*/
	do $results_do/figureD1.do    /*Online Appendix*/
	do $results_do/figureD2.do    /*Online Appendix*/


/// Tables
	do $results_do/table1.do
	do $results_do/tableA1.do     /*Online Appendix*/
	do $results_do/tableA2.do     /*Online Appendix*/
	do $results_do/tableA3.do     /*Online Appendix*/
	do $results_do/tableA4.do     /*Online Appendix*/
	do $results_do/tableC1.do	  /*Online Appendix*/	
